<template>
  <div @click="show">app</div>
  <v-button />
</template>

<script lang="ts">
import { defineComponent } from "vue";
// import { Message } from "./components/message";
// import { Button } from "./components/button";

export default defineComponent({
  name: "App",
  // setup() {
  //   const show = () => {
  //     Message();
  //   };
  //   return {
  //     show,
  //   };
  // },
  methods: {
    show() {
      // vue 2 写法
      (this as any).$message("hello word");
    },
  },
  components: {
    // Button
  },
});
</script>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
